package com.css.zfzx.sjcj.modules.hddcA6WaveformTable.repository;

import com.css.zfzx.sjcj.modules.hddcA6WaveformTable.repository.entity.HddcA6WaveformtableEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zyb
 * @date 2020-11-28
 */
public interface HddcA6WaveformtableRepository extends JpaRepository<HddcA6WaveformtableEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_a6_waveformtable where project_name in :projectIds")
    List<HddcA6WaveformtableEntity> queryByProjectId(List<String> projectIds);

    @Query(nativeQuery = true, value = "select * from hddc_a6_waveformtable where task_name in :taskIds")
    List<HddcA6WaveformtableEntity> queryByTaskId(List<String> taskIds);
}
